package com.punai.customer.controller;

import com.punai.common.core.controller.BaseController;
import com.punai.common.core.page.TableDataInfo;
import com.punai.customer.domain.vo.CusAllVo;
import com.punai.customer.service.ICusAllService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cus/all")
public class CusAllController extends BaseController {

    @Autowired
    private ICusAllService cusAllService;

    @GetMapping("/list")
    public TableDataInfo list(CusAllVo cusAllVo)
    {
        return getDataTable(cusAllService.selectAllCount(cusAllVo,getCompanyId()));
    }
}
